<template>
    <!-- <Public></Public> -->
    <div class="big_container">
        <div class="container">
            <div class="img_item" v-for="(item,index) in themeList"><img :src="item.cover" alt=""></div>
        </div>
    </div>
    <!-- 回到顶部 -->
    <div class="arrow_container">
        <a href="#ding">
            <img src="../../../assets/images/top-arrow.png" />
        </a>
    </div>
</template>

<script setup lang="ts">
import Public from '../public.vue'
import {reqThemeList} from '../../../api/discovery/discovery'
import {onMounted,ref} from 'vue'
const themeList = ref([])
onMounted(async()=>{
   let result = await reqThemeList()
    console.log(result);
    themeList.value=result.content
})
</script>

<style scoped>
.big_container{
    width: 1200px;
    height: 686px;
    margin: 0 auto;
    background-color: #F5F7F9;
    /* display: flex; */

}
.container {
    width: 1200px;
    height: 156px;
    margin-bottom: 18px;
    /* margin-bottom: 18px; */
    display: flex;
    /* justify-content: space-between; */
    flex-wrap: wrap;

}

.img_item {
    width: 286px;
    height: 156px;
    /* margin: 50px 18px 0px 0px; */
    margin-top: 15px;
    margin-right: 10px;
}

.img_item img {
    display: block;
    /* margin-top: 18px; */
    width: 286px;
    height: 156px;
}

/* 回到顶部 */
.arrow_container {
    width: 40px;
    height: 40px;
    position: sticky;
    left: 1400px;
    bottom: 50px;
    margin-bottom: 50px;
}

.arrow_container img {
    width: 100%;
}
</style>